#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>


#include <inttypes.h>
#include <math.h>
#include <limits.h>
#include <signal.h>
#include <stdint.h>

static FILE *fp_mp4 = NULL;

static uint8_t test_code[4]={0x12,0x34,0x56,0x78};

int main(void)
{

	printf("...test fopen fwrite fclose...\n");

	fp_mp4 = fopen("./123.h264","wb+"); 
	if(fp_mp4 == NULL){
		
		printf("...open error!...\n");
		exit(-1);
	}

	printf("\n");
	fwrite(test_code,1,4,fp_mp4);	

	fclose(fp_mp4);
	fp_mp4=NULL;	

	
	printf("...test succeed!...\n");

    return 0;
}

